#include<iostream>
using namespace std;
const int N=10;
int f[N][N];
int n,m;
int main()
{
	cin>>n>>m;
	f[1][1]=1;
	for(int i=1;i<=n+1;i++){
		for(int j=1;j<=m+1;j++){
			if(i==1&&j==1)continue;
			f[i][j]=f[i-1][j]+f[i][j-1];
			//cout<<"i=="<<i<<"  j=="<<j<<"  f[i][j]=="<<f[i][j]<<endl;
		}
		//cout<<endl;
	}
	cout<<f[n+1][m+1]<<endl;
	return 0;
}
